home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _F88D8796DD584E9986E33651B58D2148 < prev    next >
Encoding:
Text File  |  2004-01-06  |  3.0 KB  |  94 lines

  1. AIBehaviour.GAttack = {
  2.     Name = "GAttack",
  3.     pathname = "",
  4.  
  5.     -- SYSTEM EVENTS            -----
  6.     ---------------------------------------------
  7.     OnSelected = function(self, entity )
  8.     end,
  9.     ---------------------------------------------
  10.     OnSpawn = function(self,entity )
  11.     end,
  12.     ---------------------------------------------
  13.     OnActivate = function(self,entity )
  14.     end,
  15.     ---------------------------------------------
  16.     OnNoTarget = function( self,entity )
  17.     end,
  18.     ---------------------------------------------
  19.     OnPlayerSeen = function( self,entity )
  20.         AI:Signal(SIGNALFILTER_SUPERGROUP,1,"OnCoverCompromised",entity.id);
  21.         Game:ShowIngameDialog(-1, "", "", 12, entity:GetName()..": Cover compromised! Help, guys!!", 4);
  22.         entity:SelectPipe(0,"hide_threat");
  23.     end,
  24.     ---------------------------------------------
  25.     OnPlayerMemory = function( self,entity )
  26.     end,
  27.     ---------------------------------------------
  28.     OnEnemySeen = function(self,entity )
  29.     end,
  30.     ---------------------------------------------
  31.     OnEnemyMemory = function(self,entity )
  32.     end,
  33.     ---------------------------------------------
  34.     OnDeadFriendSeen = function(self,entity )
  35.     end,
  36.     ---------------------------------------------
  37.     OnDeadEnemySeen = function(self,entity )
  38.     end,
  39.     ---------------------------------------------
  40.     OnInterestingSoundHeard = function(self,entity )
  41.     end,
  42.     ---------------------------------------------
  43.     OnThreateningSoundHeard = function( self,entity )
  44.     end,
  45.     ---------------------------------------------
  46.     OnGunfireHeard = function(self,entity )
  47.     end,
  48.     ---------------------------------------------
  49.     OnFootstepsHeard = function( self,entity )
  50.     end,
  51.     ---------------------------------------------
  52.     OnGranateSeen = function( self,entity )
  53.     end,
  54.     ---------------------------------------------
  55.     OnLongTimeNoTarget = function( self,entity )
  56.     end,
  57.     ---------------------------------------------
  58.     OnGroupMemberDied = function( self,entity )
  59.     end,
  60.     ---------------------------------------------
  61.     OnNoNearerHidingPlace = function( self,entity , sender)
  62.     end,    
  63.     ---------------------------------------------
  64.     OnNoHidingPlace = function( self,entity, sender )
  65.     end,    
  66.     ---------------------------------------------
  67.     OnReceivingDamage = function (self,entity, sender)
  68.     end,
  69.     ---------------------------------------------
  70.     OnReload = function (self,entity, sender)
  71.         entity:SelectPipe(0,"hide_threat");
  72.     end,
  73.     ---------------------------------------------
  74.     
  75.  
  76.     AV_CoveringFire = function (self,entity, sender)
  77.         entity:StartAnimation(0,"ssignal_swait");
  78.     end,
  79.     ---------------------------------------------
  80.     OnHidden = function (self,entity, sender)
  81.         --entity.SelectPipe(0,"standingthere");
  82.     end,
  83.     ---------------------------------------------
  84.     OnCoverCompromised = function (self,entity, sender)
  85.         if (entity ~= sender) then
  86.             local thr = AI:GetAttentionTargetOf(sender.id);
  87.             if (thr) then
  88.                 Game:ShowIngameDialog(-1, "", "", 12, entity:GetName()..": I got your back, man!!", 4);
  89.                 entity:SelectPipe(0,"attack_threat",thr.id);
  90.             end
  91.         end
  92.     end,
  93.  
  94. }